package com.woniuxy.charin.controller;



import com.baomidou.mybatisplus.extension.plugins.pagination.Page;

import com.woniuxy.charin.model.dto.UserInfoDto;

import com.woniuxy.charin.model.entity.UserActionLog;
import com.woniuxy.charin.model.vo.UserInfoVo;

import com.woniuxy.charin.service.UserActionLogService;
import com.woniuxy.charin.service.UserService;
import com.woniuxy.charin.util.JwtUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/userActionLog")
@Slf4j
@Api(tags = "系统日志")
public class UserActionLogController {
    @Autowired
    private UserActionLogService userActionLogService;




    @PostMapping("/page")
    @ApiOperation("分页查询用户")
    public ResponseEntity<?> page(@RequestBody UserInfoDto userInfoDto) {
        //调用业务层查询
        Page<UserActionLog> page = userActionLogService.queryUser(userInfoDto);
        return ResponseEntity.ok(page);
    }



}